/*
 * @(#)PersonComparator.java $version 2012. 11. 8.
 *
 * Copyright 2007 NHN Corp. All rights Reserved. 
 * NHN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 */

package com.kelly.wager;

import java.util.Comparator;

/**
 * @author kelly
 */
public class PersonComparator implements Comparator<Person> {
	@Override
	public int compare(Person o1, Person o2) {
		if (o1 == null || o2 == null) {
			return 0;
		}

		return o2.getValue() - o1.getValue();
	}
}
